package diertian;

import java.util.Scanner;

public class lianxi3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("任意输入一个数");
        int num1;
        num1 = scanner.nextInt();
        if (num1 % 2 == 0) {
            System.out.println("偶数为= " + num1);
        } else {
            System.out.println("奇数为 = " + num1);
        }


    }
}
